<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp"  %>
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title>task</title>
	<link rel="stylesheet" href="css/bootstrap.min.css" />
	<link rel="stylesheet" href="css/style.css" />
</head>
<body>
	<div class="container">
		<!--header start-->
		<%@ include file="include/top.jsp" %>
		<!--header end-->
		<div class="content">
			<div class="row">
				<div class="span9">
					<div class="list">
						<span><i class="icon-list"></i>所有任务</span>
						<div class="btn-group">
						</div>
					</div>
					<c:if test="${not empty list }">
						<c:forEach items="${requestScope.list }" var="task">
							<dl>
								<dt>
									<i class="icon-file"></i><a href="taskedit.jspx?id=${task.id }&&toUrl=alltask">${task.name }&nbsp;&nbsp;&nbsp;</a>[${sessionScope.employee.name}]
								</dt>
								<dd>${task.desc}</dd>
								<c:if test="${task.rate == 0}">
									<div class="progress progress-warning progress-striped">
								  		<div class="bar" style="width: ${task.rate}%"></div>
									</div>
								</c:if>
								<c:if test="${task.rate > 0 and task.rate <= 30}">
									<div class="progress progress-info progress-striped">
								  		<div class="bar" style="width: ${task.rate}%">已完成${task.rate }%</div>
									</div>
								</c:if>
								<c:if test="${task.rate > 30 and task.rate <= 90}">
									<div class="progress progress-warning progress-striped">
								  		<div class="bar" style="width: ${task.rate}%">已完成${task.rate }%</div>
									</div>
								</c:if>
								<c:if test="${task.rate > 90 and task.rate <= 99}">
									<div class="progress progress-danger progress-striped">
								  		<div class="bar" style="width: ${task.rate}%">已完成${task.rate }%</div>
									</div>
								</c:if>
								<c:if test="${task.rate == 100}">
									<div class="progress progress-success progress-striped">
								  		<div class="bar" style="width: ${task.rate}%">已完成${task.rate }%</div>
									</div>
								</c:if>
							</dl>
						</c:forEach>
					</c:if>
					<c:if test="${empty requestScope.list }">
						<dl>
							<br>
							<dt>该目标还没有任务！去添加任务吧！</dt>
						</dl>
					</c:if>
				</div>
				<div class="span3"></div>
			</div>
		</div>
		<div class="footer">
			<p>Copyright © 2013 xxx版权所有</p>
		</div>
	</div>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
</body>
</html>